package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.UserLike;

import java.util.List;

public interface UserLikeApi {

    //保存或者更新
    Boolean saveOrUpdate(Long userId, Long likeUserId, boolean isLike);

    //查询我喜欢
    List<UserLike> queryMyLike(Long userId, Integer page, Integer pagesize);

    //查询喜欢我
    List<UserLike> queryLikeMe(Long userId, Integer page, Integer pagesize);

    //查看喜欢人数
    Integer findloveCount(Long userId);

    //查看粉丝人数
    Integer findfanCount(Long likeUserId);

    //查看互相喜欢
    Integer findeachLoveCount(Long userId);

    //喜欢-取消
    void deleteLike(Long userId, Long likeUserId);

    List<UserLike> whoLikesMe(Long userId);

    List<UserLike> MeLikeWho(Long userId);
}
